package com.neuedu.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.neuedu.model.po.User;
import com.neuedu.model.service.DemoService;

@Controller
public class DemoController {
	
	@Autowired
	private DemoService demoService;

	@RequestMapping("/queryUser")
	public @ResponseBody User queryUser(){
		User user = demoService.findUserById(1);
		return user;
	}
}
